export interface ThemeColors {
  primary: string;
  secondary: string;
  accent: string;
  background: string;
  sidebar: string;
  header: string;
  text: string;
  textSecondary: string;
  border: string;
  success: string;
  warning: string;
  error: string;
}

export interface Theme {
  name: string;
  colors: ThemeColors;
}

export const themes: { [key: string]: Theme } = {
  blue: {
    name: '蓝色主题',
    colors: {
      primary: '#3b82f6',
      secondary: '#1e40af',
      accent: '#60a5fa',
      background: '#f8fafc',
      sidebar: '#1e293b',
      header: '#ffffff',
      text: '#1e293b',
      textSecondary: '#64748b',
      border: '#e2e8f0',
      success: '#10b981',
      warning: '#f59e0b',
      error: '#ef4444'
    }
  },
  green: {
    name: '绿色主题',
    colors: {
      primary: '#10b981',
      secondary: '#047857',
      accent: '#34d399',
      background: '#f0fdf4',
      sidebar: '#064e3b',
      header: '#ffffff',
      text: '#064e3b',
      textSecondary: '#059669',
      border: '#d1fae5',
      success: '#10b981',
      warning: '#f59e0b',
      error: '#ef4444'
    }
  },
  purple: {
    name: '紫色主题',
    colors: {
      primary: '#8b5cf6',
      secondary: '#7c3aed',
      accent: '#a78bfa',
      background: '#faf5ff',
      sidebar: '#4c1d95',
      header: '#ffffff',
      text: '#4c1d95',
      textSecondary: '#7c3aed',
      border: '#e9d5ff',
      success: '#10b981',
      warning: '#f59e0b',
      error: '#ef4444'
    }
  },
  dark: {
    name: '暗黑主题',
    colors: {
      primary: '#6366f1',
      secondary: '#4f46e5',
      accent: '#818cf8',
      background: '#0f172a',
      sidebar: '#1e293b',
      header: '#1e293b',
      text: '#f1f5f9',
      textSecondary: '#94a3b8',
      border: '#334155',
      success: '#10b981',
      warning: '#f59e0b',
      error: '#ef4444'
    }
  },
  orange: {
    name: '橙色主题',
    colors: {
      primary: '#f97316',
      secondary: '#ea580c',
      accent: '#fb923c',
      background: '#fff7ed',
      sidebar: '#9a3412',
      header: '#ffffff',
      text: '#9a3412',
      textSecondary: '#ea580c',
      border: '#fed7aa',
      success: '#10b981',
      warning: '#f59e0b',
      error: '#ef4444'
    }
  }
};

export type ThemeName = keyof typeof themes;